package com.pmcc.platform.user.repository;

import com.pmcc.platform.shop.entity.ShopInfo;
import com.pmcc.platform.user.entity.UserInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserInfoRepository extends JpaRepository<UserInfo, String> {

    List<UserInfo> findAllByOppenIdAndDelFlag(String oppenId,String delFlag);

    Page<UserInfo> findAllByDelFlagAndNicknameContainsAndProvincesContainsAndCityContainsOrderByCreateTime(String delFlag,String nickname,String provinces ,String city, Pageable pageable);

    UserInfo findAllByIdAndDelFlag(String id,String delflag);

}
